var domain = 'http://210.83.86.176/mqyx/index.php';
$.feat.nativeTouchScroll = true;
/** 关闭窗口 */
function closeWin(){
	window.opener = null;
	window.open('','_self');
	window.close();
}

/** pop提示框 */
function openpop(element) {
	$('#'+element).show();
}

function closepop(element) {
	$('#'+element).hide();
}

/** 显示错误信息 */
var t;
function set_error_msg(msg){
	clearTimeout(t);
	$("#error_msg").html(msg);
	openpop('pop_msg');
	t = setTimeout("closepop('pop_msg')",2000);
}

var lastClickTime2 = 0;
function loadUrlOnNewActivity(title, url) {
	var current = new Date().getTime();
	var delta = current - lastClickTime2;
//	console.log(delta);
	window.lastClickTime2 = current;
	if (delta < 400){
		return false;
	}else{
		return window.JsGameCenter.loadUrlOnNewActivity(title, url);
	}
}

function gotoForum() {
	return window.JsGameCenter.gotoForum();
}